package net.zoneland.zrdp.biz.domain.pojo.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 处理人参数对象.
 *
 * @version v1.0
 */
@Data
public class UserInfoForm implements Serializable {

    private static final long serialVersionUID = 5674562869569874602L;

    // 最大长度提示.
    private static final String LENGTH_MESSAGE = "：不能超过20字";
    // 不能为空提示.
    private static final String NOT_BLANK_MESSAGE = "：不能为空";

    private static final String USER_ID_MESSAGE = "处理人ID";
    private static final String USER_NAME_MESSAGE = "处理人名称";

    /** 处理人ID. **/
    @Length(max = 20, message = USER_ID_MESSAGE + LENGTH_MESSAGE)
    @NotBlank(message = USER_ID_MESSAGE + NOT_BLANK_MESSAGE)
    private String userId;

    /** 处理人名称. **/
    @Length(max = 20, message = USER_NAME_MESSAGE + LENGTH_MESSAGE)
    @NotBlank(message = USER_NAME_MESSAGE + NOT_BLANK_MESSAGE)
    private String userName;

    /** 部门ID. **/
    private String deptId;

    /** 部门名称. **/
    private String deptName;

    /** 公司ID. **/
    private String companyId;

    /** 公司名称. **/
    private String companyName;
}
